powered by
Find the partial node ordering implied by a network.
node.ordering(x, debug = FALSE)
node.ordering() returns a vector of character strings, an ordered set of node labels.
node.ordering()
an object of class bn or bn.fit.
bn
bn.fit
a boolean value. If TRUE a lot of debugging output is printed; otherwise the function is completely silent.
TRUE
Marco Scutari
dag = random.graph(LETTERS[1:10]) ord = node.ordering(dag) ord
Run the code above in your browser using DataLab